package com.wu.staticdemo1;

public class B extends C{
            //B类可以继承C类的公开部分
    private String name;

    @Override
    public String toString(){
        return  "你是"+name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public B() {
    }

    public B(String name) {
        this.name = name;
    }
}
